*, *:before, *:after {
    box-sizing: inherit;
}

.oc-grid {
    overflow: hidden;
    position: relative;
	background: #f0f0f0;
	box-sizing: border-box;
}

.oc-grid:before{/*挡住左上角的部分有一个右边框和下边框*/
	content: "";
	position:absolute;
	display: block;
	width: 50px;
	height: 30px;
	top: 0;
	left:0;
	z-index: 2;
	background-color: rgb(253, 253, 253);
	border-bottom: 1px solid rgb(204, 204, 204);
	border-right: 1px solid rgb(204, 204, 204);
}
.oc-grid-bisect{
    height: 30px;
    width: 50px;
    position: absolute;
    color: #eee;
}
.oc-grid-inner {
    overflow: auto;
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 0;
    left: 50px;
}
.oc-grid-inner textarea {
	position: absolute;
	z-index: 20;
	background: #f0f0f0;
	border: none;
}
.oc-grid-inner table {
    border-spacing: 0;
    position: absolute;
	padding: 0 100px 100px 0;
}
.oc-grid-inner table thead tr{
	height: 0;
}
.oc-grid-inner th {
    width: 0;
    padding: 0;
}
.oc-grid-inner td{
	height: 0;
	border: solid rgb(204, 204, 204);
	border-width: 0 1px 1px 0;
    position: relative;
    padding: 0;
	background: #fff;
}
.oc-grid-inner td.selected{
	box-shadow: inset 0px 0px 0px 2px #ccc;
	z-index: 10;
}
.oc-grid-inner td div{
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	padding-left: 0.2rem;
}

/* 行头 */
.oc-grid-row-header {
    z-index: 1;
    position: relative;
    top: 0;
	width: 999999px;
    border-bottom: 1px solid rgb(204, 204, 204);
	height: 30px;
	margin-left: 50px;
}
.oc-grid-row-header div {
    background-color: rgb(253, 253, 253);
    border-right: 1px solid rgb(204, 204, 204);
    float: left;
	text-align: center;
	color: #666;
	height: 100%;
	position: relative;
}
.oc-grid-row-header div.selected {
	border-bottom: 3px solid red;
}
.oc-grid-row-header hr {
	display: block;
	position: absolute;
	height: 100%;
	right: -1px;
	top: 0;
	width: 0;
	border: none;
	border-left: 1px solid #ccc;
	cursor: e-resize;
}
.oc-grid-row-header hr:after {
	content: "";
	display: block;
	width: 10px;
	height: 100%;
	margin-left: -5px;
	position: absolute;
	z-index: 1;
}
/* 列头 */
.oc-grid-col-header {
    z-index: 1;
	position: absolute;
    left: 0;
	text-align: right;
	color: #666;
    border-right: 1px solid rgb(204, 204, 204);
	width: 50px;
	height: 9999px;
	margin-top: 30px;
}

.oc-grid-col-header div {
    background-color: rgb(253, 253, 253);
    border-bottom: 1px solid rgb(204, 204, 204);
}
.oc-grid-col-header div.selected {
	border-right: 3px solid red;
}
